﻿namespace Model
{
    public class Employee : BaseModel
    {
        public const string CONST_EMPLOYEE_NAME = "EmployeeName";
        public const string CONST_DEPARTMENTID = "DepartmentId";
        public const string CONST_EMPLOYEE_ID = "EmployeeId";
        public const string CONST_REQUEST_WORKORDER = "RightToRequestWorkOrder";
        public const string CONST0_ASSIGN_WORKORDER = "RightToAssignWorkOrder";
        public const string CONST_IS_CONTINUE = "Discontinue";
        public const string CONST_DOMAIN_NAME = "FullDomain";
        public const string CONST_USER_NAME = "UserName";
        public const string CONST_PASSWORD = "Password";

        private static int _USERID;
        private static int _GROUPID;
        public virtual int EmployeeId { get; set;}
        public static int USERID
        {
            get
            {
                return _USERID;
            }
            set
            {
                _USERID = value;
            }
        }
        public static int GROUPID
        {
            get
            {
                return ​_GROUPID;
            }
            set
            {
                _GROUPID = value;
            }
        }
        public virtual string EmployeeName { get; set; }
        public virtual string EmailAddress { get; set; }
        public virtual string UserName { get; set; }
        public virtual string Password { get; set; }
        public virtual int DepartmentId { get; set; }
        public virtual int CompanyId { get; set; }
        public virtual int ESP { get; set; }

        public virtual bool ReportInvisible { get; set; }
        public virtual string Payroll { get; set; }
        public virtual string FullDomain { get; set; }
        public virtual bool Discontinue { get; set; }
        public virtual int GroupId { get; set; }
        public virtual Department Department { get; set; }

        public virtual bool RightToRequestWorkOrder { get; set; }
        public virtual bool RightToAssignWorkOrder { get; set; }
       
       
        
        public override int Key
        {
            get { return this.EmployeeId; }
        }

    }
}
